package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.Role;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by dmrj on 2015/10/28.
 */
public interface RoleDao extends PagingAndSortingRepository<Role,Long>,JpaSpecificationExecutor<Role> {
    Role findByName(String name);

    Role findByDescription(String description);

    Role findById(Long id);

}
